/*
 *    Copyright © OpenAtom Foundation.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package com.inspur.edp.bff.api.manager.context;

import com.inspur.edp.cef.api.message.IBizMessage;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MessageMapperContext {

    /**
     * be消息集合，执行完变更操作后，将内部消息写入 Key：数据源编号 Value：数据源对应消息
     */
    private Map<String, List<IBizMessage>> sourceMessage = new HashMap<String, List<IBizMessage>>();
    /**
     * Vo消息：通过SourceMessage映射后的结果
     */
    private List<IBizMessage> targetMessage = new ArrayList<IBizMessage>();

    public final Map<String, List<IBizMessage>> getSourceMessage() {
        return sourceMessage;
    }

    public final void setSourceMessage(Map<String, List<IBizMessage>> value) {
        sourceMessage = value;
    }

    public final List<IBizMessage> getTargetMessage() {
        return targetMessage;
    }

    public final void setTargetMessage(List<IBizMessage> value) {
        targetMessage = value;
    }

}
